const mongoose = require('mongoose');
const taskSchema = new mongoose.Schema({
    title: String,
    completed: {
        type:Boolean,
        default: false
    }
});
const Task = mongoose.model('Task', taskSchema);

// Task.create({
//     title: '吃饭'
// });

module.exports = Task;